%module ar8030
%include "cpointer.i"
%include "typemaps.i"
%include "stdint.i"
%include "various.i"

%apply unsigned char *NIOBUFFER { void *bufs };
int bb_socket_read(int sockfd, void* bufs, uint32_t len, int timeout);
int bb_socket_write(int sockfd, const void* bufs, uint32_t len, int timeout);

SWIG_JAVABODY_PROXY(public, public, SWIGTYPE)
SWIG_JAVABODY_TYPEWRAPPER(public, public, public, SWIGTYPE)

%inline %{
#include "bb_api.h"
#include "../ar8030/warp_helper/list_helper.h"
struct bb_dev_list_t;
bb_dev_t* bb_dev_getlist_index(bb_dev_list_t* plist, int index);
%}


%include "host.i"
%include "devlist.i"

%include "../../com/bb_api.h"



